{* Smarty - 提问页面 *}

{include file="header.tpl"}

<script language="javascript" src='{$BASE_HOSTPATH}dr-content/askquestion.js'></script>

<div id="main">
	<div id="mainbar-full">
		{include file="sub-header.tpl"}
	{* 提问表单 *}
		<form id="ask_form" action="dr-page-askquestion.php" method="post">
			<fieldset>
			{* 表单错误信息 *}
			{if $errors}
				<div class="errors">{$errors}</div>
			{/if}
				<p><label for="title">标题</label></p>
				<p><input type="text" name="title" id="title" value="{$question.title}" /></p>

				<p><label for="content">正文</label></p>
				<p><textarea name="content" id="content" rows="11" cols="60">{if $question}{$question.content}{/if}</textarea></p>

				<p><label for="tags">标签</label></p>
				<p><input type="text" name="tags" id="tags" value="{$question.tags}"/>
					<br />(多个tag以空格形式隔开)</p>


				<p><input type="checkbox" name="notify" id="notify" {if ! $question.notify}checked="checked"{/if} />
					问题被回答时邮件通知我</p>

				<p><input type="submit" name="submit" id="submit" value="提问"/></p>
			</fieldset>
		</form>
	</div>
</div>

{include file="footer.tpl"}


